<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>享购网</title>
    <link rel="stylesheet" href="/css/detail.css">
</head>
<body>
    <div class="header clear-fix"></div>
    <div class="goods-detail container clear-fix" id="goodsDetail">
       
        
    </div>
    <script type="text/html" id="goodsDetailTemplate">
        <div class="depic">
            <img src="{{photo[0].url}}" class="zoom-image">
            <div class="imgs">
                <ul id="gal1"> 
                    {{each photo img}}
                        <li>
                            <a href="javascript:;"data-image="{{img.url}}" data-zoom-image="{{img.url}}">
                                <img src="{{img.url}}"  class="smallpic">
                            </a>
                        </li>
                     {{/each}}
                </ul>
            </div>
        </div>
        <div class="goods-info">
            <div class="goods-title">{{title.slice(0,5)}}</div>
            <div class="goods-intro">{{title.slice(6)}}</div>
            <div class="goods-price"><span>￥{{price}}</span>{{if couponStatus}}<span class="cheaper">{{couponStatus}}</span>{{/if}}<span class="sold">已售：<strong>{{saleNum}}</strong></span></div>
            <div class="chooseCount">
                <span class="count">数量：</span>
                <span class="count-num">
                    <input type="text" id="count" value="1">
                    <button type="button" class="add-btn count-btn">+</button>
                    <button type="button" class="des-btn count-btn" disabled>-</button>
                </span>
            </div>
            <div class="buy">
                <a class="btn-buy" href="/html/shopCase.html">立即购买</a>
                <a class="btn-shopcart">加入购物车</a>
            </div>
        </div>
        <div class="goods-topTitle"><span>商品详情</span></div>
        <div class="bigImgContent ">
            <br>
            {{each descContentList detailImg}}
                {{if detailImg.photo}}
                    <img src="{{detailImg.photo.url}}" alt="" class="bigimg">
                {{/if}}
            {{/each}}
        </div>         
    </script>

    <div class="shopCar"></div>
    <div class="footer"></div>
    <script src="/libs/require/require.min.js" data-main="/js/detail"></script>
</body>
</html>